package io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class IODemo9 {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = null;
        // 打开文件
        try {
            inputStream = new FileInputStream("./test1.txt");

            // 文件执行逻辑
        } finally {
            // 关闭文件
            inputStream.close();
        }
    }
}
